#ifndef SAVEDGAME_H
#define SAVEDGAME_H

#include <QString>
#include <QDateTime>
#include <QDataStream>
#include <QStringList>

class SavedGame
{
public:
    SavedGame();
    SavedGame(QString &saveName, int saveId, QStringList &levels, int levelPos);


    QString getLevelName();
    QString getSaveName();
    int getSaveId();
    QDateTime getSaveDate();
    QStringList getLevels();
    int getLevelPos();

    QString toString();

    void serializeOut(QDataStream &out);
    void serializeIn(QDataStream &in);

private:
    QString m_levelName;
    QString m_saveName;
    int m_saveId;
    QDateTime m_saveDate;
    QStringList m_levels;
    int m_levelPos;
};

QDataStream & operator << (QDataStream &out, SavedGame* savedGame);
QDataStream & operator >> (QDataStream &in,  SavedGame* savedGame);


#endif // SAVEDGAME_H
